package net.xiaosaguo.mymall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import net.xiaosaguo.common.utils.PageUtils;
import net.xiaosaguo.mymall.product.entity.CategoryEntity;
import net.xiaosaguo.mymall.product.vo.Catalog2VO;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author xiaosaguo
 * @email guoyx@vip.qq.com
 * @date 2020-06-04 22:35:11
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> tree();

    void removeMenuByIds(List<Long> asList);

    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Categorys();

    Map<String, List<Catalog2VO>> getCatalogJson();
}

